package com.huawei.appgallery.serverreqkit.api.bean.startup;

import android.text.TextUtils;
import com.huawei.appgallery.foundation.card.base.bean.KeywordInfo;
import com.huawei.appgallery.jsonkit.api.JsonBean;
import com.huawei.appgallery.jsonkit.api.annotation.FieldSecurity;
import com.huawei.appgallery.jsonkit.api.annotation.SecurityLevel;
import com.huawei.appgallery.serverreqkit.api.bean.BaseResponseBean;
import com.huawei.appmarket.framework.startevents.bean.CountryInfo;
import com.huawei.appmarket.framework.startevents.bean.UrlInfo;
import java.io.Serializable;
import java.util.List;
import o.ccz;
import o.cdb;
import o.cds;
import o.HcridSession;
import o.cvt;
import o.BaseRequest;
import o.cwk;
import o.dgh;
import o.dof;
import o.epq.d;
import o.epr;
import o.ese;
import o.eua;

public class StartupResponse extends BaseResponseBean {
    public static final String CHANNELNO_QUERY_FAILURE = "-1";
    public static final String CHANNELNO_USELESS = "0";
    public static final int MUST_LOGIN = 1;
    private static final int REPORT_DEFAULT = -1;
    private static final int REPORT_YES = 1;
    public static final int SUCCESS = 0;
    public static final int SUPPORT = 1;
    private UrlInfo addUrlInfo_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private List<IPInfo> backips_;
    private int biLogReport_ = -1;
    private int bigDataLogReport_ = -1;
    private List<KeywordInfo> carouselKeywords_;
    private int cdnLogReport_ = -1;
    private int gmsSupport_;
    private int isAddUrl_;
    private int isGetSurprise_ = 0;
    private int isPad_;
    private int isPreConn_ = 0;
    private int isServiceZone_ = 1;
    private int mLogin_ = 1;
    private List<OOBEInfos> oobe_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String phyZone_;
    private long roamingTime_;
    private String serviceZone_;
    private String sign_;
    private int siteID_;
    private CountryInfo supportCountry_;
    private int supportWish_;
    private List<TabInfo> tabInfo_;

    public static class TabInfo extends JsonBean implements Serializable {
        public static final String SELECTED_TAG = "1";
        public static final int STYLE_DEF = 0;
        public static final int STYLE_IMM = 1;
        private static final long serialVersionUID = -7359843954110334175L;
        private String currentTag_;
        private int fixedSort_ = 0;
        private String funFlag_;
        private int hasChild_;
        private int index;
        private int marginTop_ = 41;
        private String statKey_;
        private int style_;
        private String tabIconClicked_;
        private String tabIcon_;
        private String tabId_;
        private List<TabInfo> tabInfo_;
        private String tabName_;
        private String trace_;

        public String toString() {
            return "TabInfo [index=" + ˏ() + ", tabId_=" + ʼ() + ", tabName_=" + ᐝ() + ", currentTag_=" + ʻ() + ", trace_=" + ॱॱ() + ", marginTop_=" + ʽ() + ", statKey_=" + ͺ() + ", style_=" + ॱˊ() + "]";
        }

        public int ˎ() {
            return this.fixedSort_;
        }

        public String ॱ() {
            return this.tabIcon_;
        }

        public String ˋ() {
            return this.tabIconClicked_;
        }

        public int ˏ() {
            return this.index;
        }

        public void ˋ(int i) {
            this.index = i;
        }

        public String ʼ() {
            return this.tabId_;
        }

        public void ˋ(String str) {
            this.tabId_ = str;
        }

        public String ᐝ() {
            return this.tabName_;
        }

        public String ʻ() {
            return this.currentTag_;
        }

        public void ˏ(String str) {
            this.currentTag_ = str;
        }

        public String ॱॱ() {
            return this.trace_;
        }

        public int ʽ() {
            return this.marginTop_;
        }

        public String ͺ() {
            return this.statKey_;
        }

        public int ॱˊ() {
            return this.style_;
        }

        public List<TabInfo> ˊॱ() {
            return this.tabInfo_;
        }
    }

    public static class IPInfo extends JsonBean {
        @FieldSecurity(security = SecurityLevel.PRIVACY)
        public String uri_;
        @FieldSecurity(security = SecurityLevel.PRIVACY)
        public int use_;
    }

    public StartupResponse() {
        setRtnCode_(1);
    }

    public List<OOBEInfos> ॱ() {
        return this.oobe_;
    }

    public int ˋ() {
        return this.isPreConn_;
    }

    public int ˊ() {
        return this.isServiceZone_;
    }

    public int ˎ() {
        return this.cdnLogReport_;
    }

    public int ˏ() {
        return this.biLogReport_;
    }

    public int ॱॱ() {
        return this.bigDataLogReport_;
    }

    public CountryInfo ʻ() {
        return this.supportCountry_;
    }

    public List<IPInfo> ʼ() {
        return this.backips_;
    }

    public List<TabInfo> ᐝ() {
        return this.tabInfo_;
    }

    public List<KeywordInfo> ʽ() {
        return this.carouselKeywords_;
    }

    public int ˊॱ() {
        return this.mLogin_;
    }

    public String ॱˊ() {
        return this.sign_;
    }

    public int ͺ() {
        return this.siteID_;
    }

    public int ˏॱ() {
        return this.isPad_;
    }

    public int ˋॱ() {
        return this.supportWish_;
    }

    public String ॱᐝ() {
        return this.serviceZone_;
    }

    public String ॱˋ() {
        return this.phyZone_;
    }

    public void ॱˎ() {
        ˎ(null);
    }

    public void ˎ(BaseRequest o_cvu) {
        int serviceType_;
        int ॱ = ccz.ॱ();
        if (o_cvu instanceof cvt) {
            serviceType_ = ((cvt) o_cvu).getServiceType_();
        } else {
            serviceType_ = ॱ;
        }
        ʻॱ();
        dgh.ˎ(ॱ(ˏ()));
        ese.ˊ(ॱ(ॱॱ()));
        d.ˋ(ͺ());
        ((cds) cdb.ॱ(cds.class)).ˊ(ˋ());
        ((cds) cdb.ॱ(cds.class)).ˏ(ʼ());
        ((cds) cdb.ॱ(cds.class)).ˊ(ॱ(ˎ()));
        cwk.ˎ().ˎ(ʼ());
        if (this.roamingTime_ <= 0) {
            String ॱ2 = eua.ˏ().ॱ("physical_address", "");
            long ॱ3 = eua.ˏ().ॱ("roam_time", 0);
            if (!(ॱ3 == 0 || dof.ˋ(ॱ2))) {
                eua.ˏ().ʼ(ॱ2 + ॱ3);
            }
            eua.ˏ().ʼ("physical_address");
            eua.ˏ().ʼ("roam_time");
            HcridSession.ˋ().ˏ(0);
            HcridSession.ˋ().ˊ("");
        } else {
            eua.ˏ().ˎ("roam_time", this.roamingTime_);
            HcridSession.ˋ().ˏ(this.roamingTime_);
        }
        if (!dof.ˋ(this.phyZone_)) {
            eua.ˏ().ˋ("physical_address", this.phyZone_);
            HcridSession.ˋ().ˊ(this.phyZone_);
        }
        if (!TextUtils.isEmpty(ॱˊ())) {
            HcridSession.ˋ().ˏ(ॱˊ(), serviceType_);
        }
        HcridSession.ˋ().ˋ(this.gmsSupport_);
    }

    private boolean ॱ(int i) {
        return 1 == i || -1 == i;
    }

    private void ʻॱ() {
        epr.ˎ().ˋ(ˏॱ());
    }
}
